Optimal. Leaf size=85 \[ \frac {6 \sin (c+d x)}{7 a d}-\frac {4 \sin ^3(c+d x)}{7 a d}+\frac {6 \sin ^5(c+d x)}{35 a d}+\frac {i \cos ^5(c+d x)}{7 d (a+i a \tan (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 85, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3583, 2713}
\begin {gather*} \frac {6 \sin ^5(c+d x)}{35 a d}-\frac {4 \sin ^3(c+d x)}{7 a d}+\frac {6 \sin (c+d x)}{7 a d}+\frac {i \cos ^5(c+d x)}{7 d (a+i a \tan (c+d x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2713
Rule 3583
Rubi steps
\begin {align*} \int \frac {\cos ^5(c+d x)}{a+i a \tan (c+d x)} \, dx &=\frac {i \cos ^5(c+d x)}{7 d (a+i a \tan (c+d x))}+\frac {6 \int \cos ^5(c+d x) \, dx}{7 a}\\ &=\frac {i \cos ^5(c+d x)}{7 d (a+i a \tan (c+d x))}-\frac {6 \text {Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,-\sin (c+d x)\right )}{7 a d}\\ &=\frac {6 \sin (c+d x)}{7 a d}-\frac {4 \sin ^3(c+d x)}{7 a d}+\frac {6 \sin ^5(c+d x)}{35 a d}+\frac {i \cos ^5(c+d x)}{7 d (a+i a \tan (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.25, size = 94, normalized size = 1.11 \begin {gather*} -\frac {\sec (c+d x) (-350+175 \cos (2 (c+d x))+14 \cos (4 (c+d x))+\cos (6 (c+d x))+350 i \sin (2 (c+d x))+56 i \sin (4 (c+d x))+6 i \sin (6 (c+d x)))}{1120 a d (-i+\tan (c+d x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 206 vs. \(2 (75 ) = 150\).
time = 0.30, size = 207, normalized size = 2.44
method | result | size |
risch | \(\frac {i {\mathrm e}^{-7 i \left (d x +c \right )}}{448 d a}+\frac {5 i \cos \left (d x +c \right )}{64 d a}+\frac {35 \sin \left (d x +c \right )}{64 d a}+\frac {i \cos \left (5 d x +5 c \right )}{64 d a}+\frac {7 \sin \left (5 d x +5 c \right )}{320 d a}+\frac {3 i \cos \left (3 d x +3 c \right )}{64 d a}+\frac {7 \sin \left (3 d x +3 c \right )}{64 d a}\) | \(119\) |
derivativedivides | \(\frac {-\frac {2}{7 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{7}}+\frac {i}{\left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}+\frac {15 i}{8 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}-\frac {11 i}{4 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}+\frac {21}{10 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{5}}-\frac {11}{4 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}+\frac {21}{16 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+\frac {i}{4 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )^{4}}-\frac {i}{2 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )^{2}}+\frac {1}{10 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )^{5}}-\frac {1}{2 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )^{3}}+\frac {11}{16 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )}}{d a}\) | \(207\) |
default | \(\frac {-\frac {2}{7 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{7}}+\frac {i}{\left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}+\frac {15 i}{8 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}-\frac {11 i}{4 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}+\frac {21}{10 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{5}}-\frac {11}{4 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}+\frac {21}{16 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+\frac {i}{4 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )^{4}}-\frac {i}{2 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )^{2}}+\frac {1}{10 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )^{5}}-\frac {1}{2 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )^{3}}+\frac {11}{16 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+i\right )}}{d a}\) | \(207\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 85, normalized size = 1.00 \begin {gather*} \frac {{\left (-7 i \, e^{\left (12 i \, d x + 12 i \, c\right )} - 70 i \, e^{\left (10 i \, d x + 10 i \, c\right )} - 525 i \, e^{\left (8 i \, d x + 8 i \, c\right )} + 700 i \, e^{\left (6 i \, d x + 6 i \, c\right )} + 175 i \, e^{\left (4 i \, d x + 4 i \, c\right )} + 42 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 5 i\right )} e^{\left (-7 i \, d x - 7 i \, c\right )}}{2240 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 264 vs. \(2 (68) = 136\).
time = 0.33, size = 264, normalized size = 3.11 \begin {gather*} \begin {cases} \frac {\left (- 150323855360 i a^{6} d^{6} e^{21 i c} e^{5 i d x} - 1503238553600 i a^{6} d^{6} e^{19 i c} e^{3 i d x} - 11274289152000 i a^{6} d^{6} e^{17 i c} e^{i d x} + 15032385536000 i a^{6} d^{6} e^{15 i c} e^{- i d x} + 3758096384000 i a^{6} d^{6} e^{13 i c} e^{- 3 i d x} + 901943132160 i a^{6} d^{6} e^{11 i c} e^{- 5 i d x} + 107374182400 i a^{6} d^{6} e^{9 i c} e^{- 7 i d x}\right ) e^{- 16 i c}}{48103633715200 a^{7} d^{7}} & \text {for}\: a^{7} d^{7} e^{16 i c} \neq 0 \\\frac {x \left (e^{12 i c} + 6 e^{10 i c} + 15 e^{8 i c} + 20 e^{6 i c} + 15 e^{4 i c} + 6 e^{2 i c} + 1\right ) e^{- 7 i c}}{64 a} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 171 vs. \(2 (73) = 146\).
time = 0.50, size = 171, normalized size = 2.01 \begin {gather*} \frac {\frac {7 \, {\left (55 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 180 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 250 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 160 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 43\right )}}{a {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + i\right )}^{5}} + \frac {735 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} - 3360 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 7315 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 8820 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 6321 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 2492 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 461}{a {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}^{7}}}{560 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 7.10, size = 188, normalized size = 2.21 \begin {gather*} \frac {\left (-35\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}\,35{}\mathrm {i}-35\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8\,105{}\mathrm {i}-126\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,182{}\mathrm {i}+26\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,130{}\mathrm {i}-15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,55{}\mathrm {i}+25\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+5{}\mathrm {i}\right )\,2{}\mathrm {i}}{35\,a\,d\,{\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+1{}\mathrm {i}\right )}^5\,{\left (1+\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,1{}\mathrm {i}\right )}^7} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________